package com.zlzxm.shoesmarket.view.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.zlzxm.shoesmarket.R;
import com.zlzxm.shoesmarket.view.adapter.entity.EntityCalculateWholesaleInfo;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * CREATE BY zlzxm ON 4/26/21
 */
public class ADCalculateWholesaleInfo  extends BaseQuickAdapter<EntityCalculateWholesaleInfo, BaseViewHolder>{


    public ADCalculateWholesaleInfo() {
        super(R.layout.item_calculate_wholesale_info);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, EntityCalculateWholesaleInfo entity) {


        holder.setText(R.id.tvTotal,entity.getTotal());
        holder.setText(R.id.tvAvg,entity.getAvg());
        holder.setText(R.id.tvCost,entity.getCost());
        holder.setText(R.id.tvProfit,entity.getProfit());
    }
}
